//---------------------------------------------------------------------------
/**
 * \class CFileManager
 * \brief This is an implemented  traversal class to manage file & directory
 * \version 0.1
 *
 * \author Woo-Hyun Kim (woorung@nhncorp.com, woorung@gmail.com)
 * \author http://blog.naver.com/wisereign .
 *
 * \date 2006/09/27
 */
//---------------------------------------------------------------------------
#include "CFileManager.h"
//---------------------------------------------------------------------------
CFileManager::CFileManager() : CFileWalker()
{
 //
}
//---------------------------------------------------------------------------
CFileManager::~CFileManager()
{
 //
}
//---------------------------------------------------------------------------
bool CFileManager::DirectoryProcess(char *current_fblock_name)
{
	dirs.push_back(current_fblock_name);
	return true;
}
//---------------------------------------------------------------------------
bool CFileManager::RegularProcess(char *current_fblock_name)
{
	files.push_back(current_fblock_name);
	return true;
}
//---------------------------------------------------------------------------
bool CFileManager::BlockProcess(char *current_fblock_name)
{
	return true;
}
//---------------------------------------------------------------------------
bool CFileManager::CharProcess(char *current_fblock_name)
{
	return true;
}
//---------------------------------------------------------------------------
bool CFileManager::FifoProcess(char *current_fblock_name)
{
	return true;
}
//---------------------------------------------------------------------------
bool CFileManager::FlnkProcess(char *current_fblock_name)
{
	return true;
}
//---------------------------------------------------------------------------
bool CFileManager::SockProcess(char *current_fblock_name)
{	
	return true;
}
//---------------------------------------------------------------------------
bool CFileManager::FdirProcess(char *current_fblock_name)
{
	return true;
}
//---------------------------------------------------------------------------
vector<string> &CFileManager::getDirs(vector<string> &dirs)
{
	for(int i=0;i<this->dirs.size();i++) {
		dirs.push_back(this->dirs[i]);
	}

	return dirs;
}
//---------------------------------------------------------------------------
vector<string> &CFileManager::getFiles(vector<string> &files)
{
	for(int i=0;i<this->files.size();i++) {
		files.push_back(this->files[i]);
	}
	
	return files;
}
//---------------------------------------------------------------------------
